//
//  FBDAddFriendsViewController.m
//  baodongPro
//
//  Created by feng on 16/8/17.
//  Copyright © 2016年 proper. All rights reserved.
//

#import "FBDAddFriendsViewController.h"
#define serachBgViewHeight  70
@interface FBDAddFriendsViewController ()<UITableViewDataSource,UITableViewDelegate>
@property(nonatomic,strong)UITableView*seachTableView;

@end

@implementation FBDAddFriendsViewController
{
    UIView* _searchBackView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.containedView.backgroundColor=self.view.randomColor;
    self.title=@"搜索添加";
    
    _searchBackView=[self configeTableViewHeaderSearchView];
    [self.containedView addSubview:_searchBackView];
    [self.containedView addSubview:self.seachTableView];
    
    
    
    
    
    
    
}

-(UITableView*)seachTableView
{
    if (!_seachTableView)
    {
        _seachTableView=[[UITableView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(_searchBackView.frame), ScreenW, CGRectGetHeight(self.containedView.frame)) style:UITableViewStylePlain];
        _seachTableView.delegate=self;
        _seachTableView.dataSource=self;
        
    }
    return _seachTableView;
}
#pragma mrak -------tableViewHeadeView

-(UIView*)configeTableViewHeaderSearchView
{
    UIView* tableHeaderView= [self.view fbd_quickCreateUIViewWithFrame:CGRectMake(0, 0, screenW, serachBgViewHeight)];
    tableHeaderView.backgroundColor=[UIColor grayColor];

    
    
    
    
    
    
    return tableHeaderView;
}


#pragma mark ---UITableViewDataSource&&UITableViewDelegate
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
    
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString* indetifier=@"MyCells";
    UITableViewCell*cell=[tableView dequeueReusableCellWithIdentifier:indetifier];
    if (!cell)
    {
        cell=[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:indetifier ];
        cell.selectionStyle=0;
        
    }
    cell.textLabel.text=@"search";

    
    return cell;
    
}






- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
